//
//  DHExpressCityHUD.m
//  Dresshere
//
//  Created by ZhangPeng on 2018/1/3.
//  Copyright © 2018年 张朋. All rights reserved.
//

#import "DHExpressCityHUD.h"

@interface DHExpressCityHUD()

@end

@implementation DHExpressCityHUD

+ (DHExpressCityHUD *)shareDHExpressCityHUD{
    DHExpressCityHUD *view = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil] objectAtIndex:0];
    [view setFrame:[UIScreen mainScreen].bounds];
    view.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.7];
    [view bk_whenTapped:^{
        [view removeFromSuperview];
    }];
    return view;
}

- (IBAction)closeAction:(id)sender {
    self.isHUDShow = NO;
    [self removeFromSuperview];
}

@end
